package com.hundsun.yr.universal.p2p.bean;

import java.io.Serializable;

/**
 * 借款利率
 * @author tonglj
 *
 */
public class LoanRateBean implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 担保费率
	 */
	private double assureRate;
	/**
	 * 借款利率
	 */
	private double borrowRate;
	/**
	 * 截止天数
	 */
	private int endDay;
	/**
	 * 产品ID
	 */
	private String productId;
	/**
	 * 风险准备金费率
	 */
	private double riskRate;
	/**
	 * 服务费率
	 */
	private double serviceRate;
	/**
	 * 起始天数
	 */
	private int startDay;
	/**
	 * 租户ID
	 */
	private String tenantId;
	
	public double getAssureRate() {
		return assureRate;
	}
	public void setAssureRate(double assureRate) {
		this.assureRate = assureRate;
	}
	public double getBorrowRate() {
		return borrowRate;
	}
	public void setBorrowRate(double borrowRate) {
		this.borrowRate = borrowRate;
	}
	public int getEndDay() {
		return endDay;
	}
	public void setEndDay(int endDay) {
		this.endDay = endDay;
	}
	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}
	public double getRiskRate() {
		return riskRate;
	}
	public void setRiskRate(double riskRate) {
		this.riskRate = riskRate;
	}
	public double getServiceRate() {
		return serviceRate;
	}
	public void setServiceRate(double serviceRate) {
		this.serviceRate = serviceRate;
	}
	public int getStartDay() {
		return startDay;
	}
	public void setStartDay(int startDay) {
		this.startDay = startDay;
	}
	public String getTenantId() {
		return tenantId;
	}
	public void setTenantId(String tenantId) {
		this.tenantId = tenantId;
	}
	/***
	 * 判断传入的day是否在startDay和endDay之间
	 * @return
	 */
	public boolean isBetweenTheDays(int day){
		return day >= startDay&&day <=endDay;
	}
	

}
